<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="01-location.html">跳转页面</a>
<button class="btn2">下一页</button>
<script>
    // history.back() - 与在浏览器点击后退按钮相同
    // history.forward() - 与在浏览器中点击向前按钮相同

    //     下一页
    document.querySelector('.btn2').onclick = function () {
        history.forward();
    }
</script>
</body>
</html>
